<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span id="time">10</span>
<script>
    var sec = 10;
    setInterval(function (){
        if (sec>0){
            sec--;
            document.getElementById('time').innerHTML ="倒计时"+ sec+"秒后跳转登录界面....";
        }else{
            window.location.href = "/login.html";
        }

    },1000);
</script>
</body>
</html>